<?php
class User{
	protected $id;
	protected $id_str;
	protected $name;
	protected $screen_name;
	protected $description;

	protected $default_profile;
	protected $contributors_enabled;
	protected $protected;

	protected $time_zone;
	protected $profile_background_color;

	protected $profile_image_url_https;
	protected $default_profile_image;
	protected $following;
	protected $utc_offset;
	protected $profile_image_url;
	
	protected $show_all_inline_media;
	protected $geo_enabled;
	protected $friends_count;
	protected $profile_text_color;
	protected $location;
	protected $is_translator;
	protected $profile_sidebar_fill_color;
	protected $follow_request_sent;
	protected $created_at;
	protected $profile_background_tile;
	protected $profile_background_image_url_https;
	protected $url;
	protected $statuses_count;
	protected $notifications;
	protected $profile_link_color;
	protected $lang;
	protected $verified;
	protected $favourites_count;
	protected $profile_sidebar_border_color;

	protected $listed_count;

	public function __construct($userObj){
		$this->default_profile = $userObj['default_profile'];
		$this->contributors_enabled = $userObj['contributors_enabled'];
		$this->protected = $userObj['protected'];
		$this->id_str = $userObj['id_str'];
		$this->time_zone = $userObj['time_zone'];
		$this->profile_background_color = $userObj['profile_background_color'];
		$this->name = $userObj['name'];
		$this->profile_image_url_https = $userObj['profile_image_url_https'];
		$this->default_profile_image = $userObj['default_profile_image'];
		$this->following = $userObj['following'];
		$this->utc_offset = $userObj['utc_offset'];
		$this->profile_image_url = $userObj['profile_image_url'];
		$this->description = $userObj['description'];
		$this->show_all_inline_media = $userObj['show_all_inline_media'];
		$this->geo_enabled = $userObj['geo_enabled'];
		$this->friends_count = $userObj['friends_count'];
		$this->profile_text_color = $userObj['profile_text_color'];
		$this->location = $userObj['location'];
		$this->is_translator = $userObj['is_translator'];
		$this->profile_sidebar_fill_color = $userObj['profile_sidebar_fill_color'];
		$this->url = $userObj['url'];
		$this->follow_request_sent = $userObj['follow_request_sent'];
		$this->profile_background_image_url_https = $userObj['profile_background_image_url_https'];
		$this->created_at = $userObj['created_at'];
		$this->profile_background_tile = $userObj['profile_background_tile'];
		$this->statuses_count = $userObj['statuses_count'];
		$this->screen_name = $userObj['screen_name'];
		$this->notifications = $userObj['notifications'];
		$this->profile_link_color = $userObj['profile_link_color'];
		$this->lang = $userObj['lang'];
		$this->verified = $userObj['verified'];
		$this->favourites_count = $userObj['favourites_count'];
		$this->profile_sidebar_border_color = $userObj['profile_sidebar_border_color'];
		$this->id = $userObj['id'];
		$this->listed_count = $userObj['listed_count'];
	}

	public function __get($key) {
		return $this->$key;
	}
	public function __set($key, $value) {
		$this->$key = $value;
	}
}